.error-boundary {
  padding: 24px;
  
  // 错误详情样式
  .error-details {
    margin-top: 32px;
    padding: 24px;
    background-color: #f5f5f5;
    border-radius: 4px;
    
    h4 {
      margin: 0 0 16px;
      color: rgba(0, 0, 0, 0.85);
      font-size: 16px;
      font-weight: 500;
      
      &:not(:first-child) {
        margin-top: 24px;
      }
    }
    
    pre {
      margin: 0;
      padding: 16px;
      overflow: auto;
      font-size: 13px;
      line-height: 1.5;
      background-color: #fff;
      border: 1px solid #f0f0f0;
      border-radius: 2px;
      
      // 自定义滚动条样式
      &::-webkit-scrollbar {
        width: 6px;
        height: 6px;
      }
      
      &::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
        
        &:hover {
          background: #999;
        }
      }
      
      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
      }
    }
  }
}

// 响应式布局
@media screen and (max-width: 576px) {
  .error-boundary {
    padding: 16px;
    
    .error-details {
      margin-top: 24px;
      padding: 16px;
      
      h4 {
        font-size: 14px;
        margin-bottom: 12px;
        
        &:not(:first-child) {
          margin-top: 20px;
        }
      }
      
      pre {
        padding: 12px;
        font-size: 12px;
      }
    }
  }
}

// 暗色主题支持
[data-theme='dark'] {
  .error-boundary {
    .error-details {
      background-color: #1f1f1f;
      
      pre {
        background-color: #141414;
        border-color: #303030;
      }
    }
  }
}

// 打印样式优化
@media print {
  .error-boundary {
    padding: 0;
    
    .error-details {
      margin-top: 20px;
      padding: 15px;
      border: 1px solid #d9d9d9;
      
      pre {
        white-space: pre-wrap;
        word-wrap: break-word;
      }
    }
  }
}